package com.jhws.business.property.bo;

import javax.persistence.*;
import java.util.Date;

@Table(name = "property_fee_formula")
@Entity
public class PropertyFeeFormula {
    @Id
    @Column(name = "id")
    private String id; // id
    @Column(name = "comm_code")
    private String commCode; //所属小区
    @Column(name = "type")
    private String type; //公式类型
    @Column(name = "name")
    private String name; //公式名称
    @Column(name = "charge_cycle")
    private int chargeCycle; //收费周期
    @Column(name = "creation_time")
    private Date creationTime; //创建时间
    @Column(name = "custom_content")
    private String customContent; //公式自定义内容
    @Column(name = "bill_day", columnDefinition = "INT default 0")
    private int billDay; // 账单日
    @Column(name = "is_enable", columnDefinition = "INT default 0")
    private int isEnable; //是否启用 0 未启用 1 启用
    @Column(name = "description")
    private String description; //描述

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCommCode() {
        return commCode;
    }

    public void setCommCode(String commCode) {
        this.commCode = commCode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChargeCycle() {
        return chargeCycle;
    }

    public void setChargeCycle(int chargeCycle) {
        this.chargeCycle = chargeCycle;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public String getCustomContent() {
        return customContent;
    }

    public void setCustomContent(String customContent) {
        this.customContent = customContent;
    }

    public int getBillDay() {
        return billDay;
    }

    public void setBillDay(int billDay) {
        this.billDay = billDay;
    }

    public int getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(int isEnable) {
        this.isEnable = isEnable;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "PropertyFeeFormula{" +
                "id='" + id + '\'' +
                ", commCode='" + commCode + '\'' +
                ", type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", chargeCycle=" + chargeCycle +
                ", creationTime=" + creationTime +
                ", customContent='" + customContent + '\'' +
                ", billDay=" + billDay +
                ", isEnable=" + isEnable +
                ", description='" + description + '\'' +
                '}';
    }
}
